﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package org.aswing.event {
    import flash.events.*;
    import org.aswing.geom.*;

    public class MovedEvent extends AWEvent {

        public static const MOVED:String = "moved";

        private var oldPos:IntPoint;
        private var newPos:IntPoint;

        public function MovedEvent(_arg1:IntPoint, _arg2:IntPoint){
            super(MOVED, false, false);
            this.oldPos = _arg1.clone();
            this.newPos = _arg2.clone();
        }
        override public function clone():Event{
            return (new MovedEvent(this.oldPos, this.newPos));
        }
        public function getOldLocation():IntPoint{
            return (this.oldPos.clone());
        }
        public function getNewLocation():IntPoint{
            return (this.newPos.clone());
        }

    }
}//package org.aswing.event 
